/*-------------------------------------------------------- 
* Module Name : OLBackgroundRender
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLBackgroundRender.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* Object for cached rendering of blurred backgrounds. This
* needs to be enabled in the apptemplate.pri file.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifdef OL_BLUR_BACKGROUND

#ifndef __OLBACKGROUNDRENDER_H__
#define __OLBACKGROUNDRENDER_H__

#include <QtGui/QWidget>

class OLBackgroundRender : public QWidget
{
	Q_OBJECT

public:
    OLBackgroundRender(QPixmap& pixmap, QWidget* parent = 0);
    ~OLBackgroundRender();
    
protected:
	virtual void paintEvent(QPaintEvent* e);

private:
    QPixmap m_background;
};

#endif // __OLBACKGROUNDRENDER_H__

#endif
